﻿<%@ Page Title="" Language="C#" MasterPageFile="~/App_MasterPages/WebNemo.Master" AutoEventWireup="true" CodeBehind="GroupColumns.aspx.cs" Inherits="blackhouse.WebNemo.Web.Nemo.Manager.GroupColumns" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphTop" runat="server">
    <section id="nemo-manager-columns">
        <div id="scrollAlwaysTop">
            <header>
                <h1>
                    <asp:Literal runat="server" ID="ltlHeaderName" />
                </h1>
                <asp:HyperLink runat="server" ID="lnkAdd" ToolTip="Dodaj nową kolumnę" CssClass="head-action">+ dodaj kolumnę</asp:HyperLink>

                <div class="bord-left fRight">
                    <asp:HyperLink ID="lnkClose" runat="server" CssClass="close">zamknij</asp:HyperLink>
                    <%--<div class="close" data-type="close-popup">zamknij</div>--%>
                </div>
                <div class="bord-left fRight">
                    <div class="sort">
                        <span class="title">Sortuj:</span>
                        <div class="sort-options" data-sortable="#columnsTable>.row" data-sortidselect="#hiddenSortGroup">
                            <div class="sort-block">
                                <a class="sort-asc" data-type="sortoption" data-sortkey="systemname" data-sortby=".columnident" data-sortattr="data-systemname">Nazwa systemowa</a>
                                <a data-type="sortoption" data-sortkey="displayname" data-sortby=".columnident" data-sortattr="data-displayname">Nazwa wyświetlana</a>
                            </div>
                            <div class="sort-block">
                                <a data-type="sortoption" data-sortkey="sort" data-sortby=".columnident" data-sortattr="data-sort" data-sortuseval="true">Sort</a>
                                <a data-type="sortoption" data-sortkey="sort" data-sortby=".columnid" data-sortattr="data-columnid" data-sortuseval="true">Id</a>
                            </div>
                        </div>
                        <div class="cleaner"></div>
                    </div>
                </div>
                <div class="cleaner"></div>
            </header>
            <nemo:TabMenu ID="nemoTabNemo" runat="server" Visible="false" />
        </div>
    </section>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphLeft" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphRight" runat="server">
    <div id="scrollMakeScroll">
        <asp:HiddenField runat="server" ID="hiddenSortGroup" ClientIDMode="Static" />
        <asp:Repeater runat="server" ID="rptColumns" OnItemDataBound="ItemDataBound_rptColumns">
            <HeaderTemplate>
                <div id="columnsTable" class="table">
            </HeaderTemplate>
            <ItemTemplate>
                <div class="row">
                    <div class="cell columnid" data-columnid="<%#Eval("ColumnId") %>"><%#Eval("ColumnId") %></div>
                    <div class="cell columnident" data-systemname="<%#Eval("ColumnName") %>" data-sort="<%#Eval("ColumnSort") %>" data-displayname="<%#Eval("Name").ToString().Replace("\"","''") %>">
                        <a title="<%#Eval("Name") %> (<%#Eval("ColumnName") %>, <%#Eval("ColumnSort") %>)"><b><%#Eval("Name") %></b> <span class="columnname">(<%#Eval("ColumnName") %>, <%#Eval("ColumnSort") %>)</span></a>
                        <a class="action" href="/Nemo/EditRecord.aspx?groupId=1&recordId=12&autoClose=1&returnUrl=%2fNemo%2fGroupListing.aspx%3fgroupId%3d1%26autoClose%3d1">+ edytuj</a>
                        <a class="action" href="remove-record:12">+ usuń</a>
                    </div>
                    <div class="cell columntype">
                        <asp:Literal runat="server" ID="ltlGroupType" /></div>
                    <div class="cell columnsmallinfo">
                        <asp:HyperLink runat="server" ID="lnkRegex" CssClass="manager-columns-ico manager-columns-ico-regex" />
                        <asp:HyperLink runat="server" ID="lnkFormat" CssClass="manager-columns-ico manager-columns-ico-format" />
                        <asp:HyperLink runat="server" ID="lnkEditControl" CssClass="manager-columns-ico manager-columns-ico-custom" />
                        <asp:HyperLink runat="server" ID="lnkEditable" CssClass="manager-columns-ico manager-columns-ico-edit" ToolTip="Edytowalny">Edytowalny</asp:HyperLink>
                    </div>
                </div>
            </ItemTemplate>
            <FooterTemplate></div></FooterTemplate>
        </asp:Repeater>

    </div>
</asp:Content>
